import { mock, Random } from 'mockjs';

export function studentList() {
  const list: any[] = [];
  for (let i = 0; i < 20; i++) {
    list.push({
      id: mock('@id'),
      name: mock('@cname'),
      sex: Random.integer(0, 1),
      age: Random.integer(18, 24),
      studentClass: mock('@ctitle') + '班',
    });
  }
  return list;
}
